import request from '@/utils/request'

/**
 * @description: 获取看板规则账户
 * @param {*} params
 */
export function getHaveViaualAccountList(params) {
  return request({
    url: '/company/visual/pannel/account/list',
    params
  })
}

/**
 * @description: 获取拥有看板权限的账户
 * @param {*} params
 */
export function getHaveViaualAccount(params) {
  return request({
    url: '/company/visual/pannel/account',
    params
  })
}

/**
 * @description: 获取看板规则详情
 * @param {*} params
 */
export function getHaveViaualAccountDetail(params) {
  return request({
    url: '/company/visual/pannel/rule/detail',
    params
  })
}

/**
 * @description: 更新看板播放规则
 * @param {*} data
 */
export function updateViaualAccount(data) {
  return request({
    url: '/company/visual/pannel/rule/update',
    method: 'post',
    data
  })
}

/**
 * @description: 保存用户规则检验信息
 * @param {*} data
 */
export function saveVisualRule(data) {
  return request({
    url: '/company/visual/pannel/rule/save',
    method: 'post',
    data
  })
}

/**
 * @description: 删除看板校验规则
 * @param {*} data
 */
export function deleteViaualAccount(data) {
  return request({
    url: '/company/visual/pannel/rule/delete',
    method: 'post',
    data
  })
}
